package com.itheima.mapper;

import com.github.pagehelper.Page;
import com.itheima.entity.Comments;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.pojo.po.CommentsPo;
import com.itheima.pojo.po.UserPo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author guanhuaer
 * @since 2024-09-15
 */
@Mapper
public interface CommentsMapper extends BaseMapper<Comments> {

    List<CommentsPo> selectProjectId(Integer id);
    CommentsPo selectProjectIds(Integer id);

    void commentsAdd(Comments comments);

    Integer selectSupport(Integer id);


    void updateSupport(Integer id, Integer support);

    List<CommentsPo> selectSubComments(Integer id);

    Comments contentsFindNew(Comments comments);

    Page<CommentsPo> selectCommentsList(CommentsPo comment);

    void commentDelete(Integer[] ids);

    UserPo getMemberInfo(String username);

    List<String> contentsFindAll();

}
